<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>评测</title>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta charset="utf-8" />
    <link rel="stylesheet" type="text/css" href="<%=path %>/css/f/default.css"/>
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/f/navs.css"/>
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/f/assignment.css"/>
	<script src="js/jquery.min.js"></script>
	<script src="js/f/jskey_calendar.js"></script>
	<script src=" js/f/pingcejs.js"></script>
 
  </head> 
 
  
  <body>
	<div class="all">
		<jsp:include page="/nav.jsp"></jsp:include>
        <div class="rightall float-left">
			<div class="already" id="id">
				<div class="already-title">
					<div class="left">添加评测 </div>
				</div>
				<div id="text" style="margin-top:30px;">
				
					<div style="margin-top:20px;">
						<form method="post" action="counselor/courseAssessment.do">
						选择班级：	<select onchange="chuandi(this)" name="classname" class="task">
											<option>请选择</option>
										<c:forEach items="${classname}" var="c"> 
											<option>${c.className}</option>
										</c:forEach>
									</select>
						评测的课程:<select onchange="chuandier(this)" name="coursename" class="task">
										<option>请选择</option>
								</select><br/><br/>
						评测的老师: <input class="task" type="text" name="tchname"  readonly />
						评测时间段：<input  class="task" onclick="$jskey.calendar.show(this, {min:'2018-05-31 09:10:11',max:'3000-03-25 09:10:11',lang:0,format:'yyyy-MM-dd',show:'yyyy-MM-dd'})" type="text" name="startime"/> &nbsp;
						至&nbsp;<input  class="task" onclick="$jskey.calendar.show(this, {min:'2018-05-31 09:10:11',max:'3000-03-25 09:10:11',lang:0,format:'yyyy-MM-dd',show:'yyyy-MM-dd'})" type="text" name="endtime" />
	                		<input type="submit" value="添加测评" class="btn-style task"/>
						</form>
				<div class="already-title" style="margin:15px auto;">
					<div class="left">最新评测数据展示 </div>
				</div>
							<input type="text" class="task" placeholder="班级/老师/课程名称" name="conditions"/>
	                		<input type="submit"  value="搜索" onclick="huanqu()" class="btn-style task"/>
						
					</div>
					<table id="tables">
						<tr class="tr-style-head">
							<td>选项</td>
							<td value="dsldsald_level">掌握程度人数</td>
							<td>对教师讲课感受人数</td>
							<td>教师讲课吸引力人数</td>
							<td>责任心人数</td>
							<td>教学事故人数</td>
							<td>管纪律人数</td>
							<td>布置作业效率人数</td>
							<td>问题能否解答人数</td>
						</tr>
						<tr class="tr-style">
							<td>1</td>
							<c:forEach items="${num1}" var="n">
								<td><a href="Javascript:void(0)" onclick="qiehuan(this)" >${n}人</a></td>
							</c:forEach>
						</tr>
						<tr class="tr-style">
							<td>2</td>
							<c:forEach items="${num2}" var="n">
								<td><a href="Javascript:void(0)" onclick="qiehuan(this)">${n}人</a></td>
							</c:forEach>
						</tr>
						<tr class="tr-style">
							<td>3</td>
							<c:forEach items="${num3}" var="n">
								<td><a href="Javascript:void(0)" onclick="qiehuan(this)">${n}人</a></td>
							</c:forEach>
						</tr>
					</table>
					
				</div>
			</div>
			<div class="already" style="display:none;" id="idd">
				<div class="already-title">
					<div class="left">人员信息</div>
					<div class="left float-right"><a class="a-color-write"  onclick="show('id'), hide('idd')">返回</a></div>
				</div>
				<div style="margin-top:20px;">
					<table>
						<tr class="tr-style-head">
							<td>姓名</td>
							<td>学号</td>
							<td>掌握程度</td>
							<td>对教师讲课感受</td>
							<td>教师讲课吸引力</td>
							<td>责任心</td>
							<td>教学事故</td>
							<td>管纪律</td>
							<td>布置作业效率</td>
							<td>问题能否解答</td>
						</tr>
						<c:forEach items="${assessment}" var="s">
							<tr class="tr-style">
							<td>${s.stuName}</td>
							<td>${s.stuNo}</td>
							<c:if test="${s.masterLevel==1}">
								<td>掌握一大半以上</td>
							</c:if>
							<c:if test="${s.masterLevel==2}">
								<td>掌握一半左右</td>
							</c:if>
							<c:if test="${s.masterLevel==3}">
								<td>掌握比较少</td>
							</c:if>
							
							<c:if test="${s.feelLevel==1}">
								<td>较好</td>
							</c:if>
							<c:if test="${s.feelLevel==2}">
								<td>一般</td>
							</c:if>
							<c:if test="${s.feelLevel==3}">
								<td>平淡</td>
							</c:if>
							
							<c:if test="${s.attractionLevel==1}">
								<td>较有吸引力</td>，
							</c:if>
							<c:if test="${s.attractionLevel==2}">
								<td>一般</td>，
							</c:if>
							<c:if test="${s.attractionLevel==3}">
								<td>感受不到吸引力</td>，
							</c:if>
							
							<c:if test="${s.dutyLevel==1}">
								<td>责任心强</td>
							</c:if>
							<c:if test="${s.dutyLevel==2}">
								<td>一般</td>
							</c:if>
							<c:if test="${s.dutyLevel==3}">
								<td>只上课不育人</td>
							</c:if>
							
							<c:if test="${s.accidentLevel==1}">
								<td>没有</td>
							</c:if>
							<c:if test="${s.accidentLevel==2}">
								<td>只有一次</td>
							</c:if>
							<c:if test="${s.accidentLevel==3}">
								<td>两次以上</td>
							</c:if>
							
							<c:if test="${s.disciplineLevel==1}">
								<td>经常管</td>
							</c:if>
							 <c:if test="${s.disciplineLevel==2}">
								<td>时管时不管</td>
							</c:if>
							 <c:if test="${s.disciplineLevel==3}">
								<td>不管</td>
							</c:if>
							 
							 
							 
							<c:if test="${s.aggignLevel==1}">
								<td>一到两次课</td>
							</c:if>
							<c:if test="${s.aggignLevel==2}">
								<td>3次课</td>
							</c:if>
							<c:if test="${s.aggignLevel==3}">
								<td>3次课以上</td>
							</c:if>
							
							
							<c:if test="${s.answerLevel==1}">
							<td>能够及时解答</td>
							</c:if>
							<c:if test="${s.answerLevel==2}">
							<td>有时能够解答</td>
							</c:if>
							<c:if test="${s.answerLevel==3}">
							<td>不能得到解答</td>
							</c:if>
							
						</tr>
						</c:forEach>
					</table>
				</div>
			</div>
		</div>
	</div>
  </body>
</html>
